package bz.yfw.examples.fx3.helloworld.helper
{
	import bz.yfw.examples.fx3.helloworld.view.HelloWorldView;
	
	import mx.controls.Button;
	import mx.controls.Label;
	import mx.controls.TextInput;
	
	import org.seasar.akabana.yui.framework.ns.viewpart;
	
	use namespace viewpart;
	
	public class HelloWorldHelper
	{
		viewpart var btnSay:Button;
		viewpart var txtinptInputData:TextInput;
		viewpart var lblOut:Label;
		
		public function HelloWorldHelper()
		{
		}
		
		public function inputDataLength():uint {
			return txtinptInputData.length;
		}
		
		public function say():void {
			lblOut.text = txtinptInputData.text;
		}
		
		public function btnSayVisible(value:Boolean):void {
			btnSay.visible = value;
		}
	}
}